package org.ams.common.entity;

import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;

public class SystemMoniterCache implements Serializable {

	private static final long serialVersionUID = 237383186697143121L;
	
	public static Map<String, Object> systemMonitorCache = new HashMap<String, Object>();
	
	//本服务器ip
	public static final String HOST_IP = "hostIp";
	
	//服务器操作系统名称
	public static final String OS_NAME = "osName";
	
	//jvm内存总大小kb
	public static final String JVM_TOTAL = "jvmTotal";
	
	//jvm使用大小kb
	public static final String JVM_USED = "jvmUsed";
	
	//jvm剩余大小kb
	public static final String JVM_FREE = "jvmFree";
	
	//JVM内存使用率
	public static final String JVM_USED_RATE = "jvmUsedRate";
	
	//JVM内存空闲率
	public static final String JVM_FREE_RATE = "jvmFreeRate";
	
	//内存总大小kb
	public static final String MEMORY_TOTAL = "memTotal";
	
	//内存使用大小kb
	public static final String MEMORY_USED = "memUsed";
	
	//内存剩余大小kb
	public static final String MEMORY_FREE = "memFree";
	
	//内存使用率
	public static final String MEMORY_USED_RATE = "memUsedRate";
	
	//内存空闲率
	public static final String MEMORY_FREE_RATE = "memFreeRate";
	
	static {
		
		systemMonitorCache.put(HOST_IP, "未识别");
		
		systemMonitorCache.put(OS_NAME, "未识别");
		
		systemMonitorCache.put(JVM_TOTAL, 0);
		systemMonitorCache.put(JVM_USED, 0);
		systemMonitorCache.put(JVM_FREE, 0);
		systemMonitorCache.put(JVM_USED_RATE, 0.0D);
		systemMonitorCache.put(JVM_FREE_RATE, 0.0D);
		
		systemMonitorCache.put(MEMORY_TOTAL, 0);
		systemMonitorCache.put(MEMORY_USED, 0);
		systemMonitorCache.put(MEMORY_FREE, 0);
		systemMonitorCache.put(MEMORY_USED_RATE, 0.0D);
		systemMonitorCache.put(MEMORY_FREE_RATE, 0.0D);
	}

}
